package com.coder4j.starter.tools;

import com.coder4j.starter.tools.util.*;

import java.util.List;

public class Utils {


    public static boolean hasBit(long number, int index) {
        return BitUtils.hasBit(number, index);
    }

    public static long setBit(long number, int index, int status) {
        return BitUtils.setBit(number, index, status);
    }

    public static int getChineseStrokeCount(String str) {
        return ChineseUtils.getChineseStrokeCount(str);
    }

    public static boolean write2File(String filePath, boolean isAppend, List<String> list) {
        return FileUtils.write2File(filePath, isAppend, list);
    }

    public static List<String> readFromFile(String filePath) {
        return FileUtils.readFromFile(filePath);
    }

    public static String getMd5String(String str) {
        return Md5Utils.getMd5String(str);
    }

    public static String getUUID() {
        return UUIDUtils.getUUID();
    }

    public static String getRandomNumber(int length) {
        return RandomUtils.getRandomNumber(length);
    }

    public static String getRandomStr(int length) {
        return RandomUtils.getRandomStr(length);
    }

    public static boolean isEmpty(Object... parameters) {
        return ObjectUtils.hasEmpty(parameters);
    }

    public static boolean noEmpty(Object... parameters) {
        return ObjectUtils.noEmpty(parameters);
    }

    public static boolean hasValue(Object... parameters) {
        return ObjectUtils.hasValue(parameters);
    }

    public static boolean noValue(Object... parameters) {
        return ObjectUtils.noValue(parameters);
    }

    public static String firstToUpper(String str) {
        return StringUtils.firstToUpper(str);
    }

    public static String firstToLower(String str) {
        return StringUtils.firstToLower(str);
    }

    public static String humpToLine(String str) {
        return StringUtils.humpToLine(str);
    }

    public static String lineToHump(String str) {
        return StringUtils.lineToHump(str);
    }

    public static boolean isUserName(String string) {
        return StringUtils.isUserName(string);
    }

    public static boolean isPhoneNo(String string) {
        return StringUtils.isPhoneNo(string);
    }

    public static boolean isEmail(String string) {
        return StringUtils.isEmail(string);
    }
}